<template>
  <div class="approvalAll">
    <div class="approvalAll_head">这里是头部</div>
    <section class='approvalAll_section'>
      <div class="approvalAll_tabs">
        <el-tabs v-model="activeName" @tab-click="handleClick">
          <el-tab-pane label="待审核" name="first">
            <ul class="approvalAll_list">
              <li class="approvalAll_items">
                <div class="items_head">
                  <span class="items_sub">假</span>
                  <span class="items_main" style="font-size: 15px;margin-right:15px;">钟小平的请假申请</span>
                  <span class="items_addr" style="margin-right: 40px;color: #38f;">招商集团总部</span>
                  <span>年假（共2天）</span>
                </div>
              </li>
              <li>2</li>
              <li>3</li>
              <li>4</li>
            </ul>
          </el-tab-pane>
          <el-tab-pane label="已审核" name="second">已审核</el-tab-pane>
          <el-tab-pane label="我发起" name="third">我发起</el-tab-pane>
        </el-tabs>
        <div class="launch">发起休假</div>
      </div>
      
    </section>
  </div>
</template>

<script>
  import Axios from 'axios'
  import Vue from 'vue'
  import { Tabs, TabPane } from 'element-ui'
  
  Vue.use(Tabs)
  Vue.use(TabPane)

  export default {
    name: 'approvalAll',
    data(){
			return {
        activeName: 'first'
      }
		},
		methods:{
      handleClick(tab, event) {
        console.log(tab, event);
      }
    },
    created () {
      console.log('审批查看全部页面')
    },
		components:{

		},
   	mounted(){
        
    }
  }
</script>

<style>
.approvalAll_head {
  height: 50px;
  background: #3c8dbc;
  line-height: 50px;
  text-align: center;
  color: #fff;
 }
 .approvalAll_section {
  box-sizing:border-box;
  -moz-box-sizing:border-box; /* Firefox */
  -webkit-box-sizing:border-box; /* Safari */
  padding: 30px 0;
  background: #ecf0f5;
}
.approvalAll_section .approvalAll_tabs {
  padding: 0 100px;
  background: #fff;
  position: relative;
}
.approvalAll_section .approvalAll_tabs .launch {
  position: absolute;
  right: 110px;
  top: 0;
  height: 42px;
  line-height: 42px;
  color: #38f;
  font-weight: 900;
}
.approvalAll .el-tabs__header {
  border-bottom: 0;
}
.approvalAll .el-tabs__item.is-active {
  border-top: 2px solid #38f;
  background: #eee;
}
.approvalAll .el-tabs__nav-scroll .el-tabs__item {
  color: #000;
  padding: 0 30px;
}
.approvalAll .el-tabs__active-bar {
  background: #fff;
}
.approvalAll_section .approvalAll_tabs .approvalAll_items {
  background: pink;
  padding: 20px;
}
.approvalAll_section .approvalAll_tabs .approvalAll_items .items_sub {
  display: inline-block;
  width: 23px;
  height: 23px;
  background: #38f;
  font-size: 14px;
  line-height: 25px;
  text-align: center;
  color: #fff;
  border-radius: 25px;
  position: relative;
  top: -1px;
  margin-right: 5px;
}
</style>
